#ifndef __SI7006_H__
#define __SI7006_H__

#include "iic.h"
#define     SI7006_SLAVE   0x40
#define     USER_REG_CMD   0xE6
#define     USER_REG_VALUE  0x3A
#define     MEASURE_HUM_CMD  0xE5
#define     MEASURE_TEMP_CMD  0xE3


void si7006_init(void);

unsigned short si7006_read_hum_data(unsigned char slave_addr, unsigned char cmd_code);
short si7006_read_temp_data(unsigned char slave_addr, unsigned char cmd_code);


#endif //__SI7006_H__
